package top.oauth2.common.util.captcha;

import java.util.Random;

/**
 * @author xphu
 * @version 1.0
 * @date 2021/9/8 16:15
 */
public final class SmsCaptchaUtil {

    public static String getCode() {
        return String.format("%04d",new Random().nextInt(9999));
    }

}
